package com.hspedu.file;

import java.io.File;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/3/8
 * @time 20:15
 */
public class FileTest {
    public static void main(String[] args) {
        File file = new File("D:\\浏览器下载\\数据结构与算法\\笔记代码课件资料 (1)\\笔记\\MyNote");
        System.out.println(file.getName());
        System.out.println(file.getParent());
        System.out.println(file.getPath());
        System.out.println(file.getTotalSpace());
        System.out.println(file.length());
        long l = file.lastModified();
        System.out.println(l);
    }
}
